<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script src="http://code.jquery.com/jquery-1.12.3.min.js"></script>
<script type="text/javascript">
	$(function(){
		var result="${requestScope.result}";
		if(result==0){
			$("#msg").html("激活成功,正在为您跳转到登录页面...").append("<br/><br/><a style='font-size:14px;text-decoration:underline;' href='login.jsp'>立即跳转</a>");
			setTimeout(function(){//两秒后跳转  
	            location.href='login.jsp';
	         },3000);
		}else if(result==-1){
			$("#msg").html("激活码超时,正在为您重新发送激活验证...");
		}else if(result==-2){
			$("#msg").html("激活码错误,3秒后为您跳转到注册页面重新注册...").append("<br/><br/><a style='font-size:14px;text-decoration:underline;' href='register.jsp'>立即跳转</a>");
			setTimeout(function(){//两秒后跳转  
	            location.href='register.jsp';
	         },3000);
		}else if(result==-3){
			$("#msg").html("该账号已经被激活的，请勿重复点链接！3秒后为您跳转到登录页面...").append("<br/><br/><a style='font-size:14px;text-decoration:underline;' href='login.jsp'>立即跳转</a>");
			setTimeout(function(){//两秒后跳转  
	            location.href='login.jsp';
	         },3000);
		}else if(result=="-4"){
			$("#msg").html("账号不存在，3秒后为您跳转到注册页面...").append("<br/><br/><a style='font-size:14px;text-decoration:underline;' href='register.jsp'>立即跳转</a>");
			setTimeout(function(){//两秒后跳转  
	            location.href='register.jsp';
	         },3000);
		}
	});
</script>
</head>
<body>
	<jsp:include page="common/header.jsp"></jsp:include>
	<div style="text-align:center;border:1px solid #ccc;width:50%;height:300px;margin:20px auto;">
		<p id="msg" style="font-size:18px;margin:19% auto;"></p>
	</div>
	<jsp:include page="common/footer.jsp"></jsp:include>
</body>
</html>